package org.momo.rpc.exception;

import lombok.Getter;


@Getter
public class RpcCallException extends RuntimeException {

    private final Long id;

    private final String serviceName;

    private final String methodName;

    private final boolean enableRetry;

    public RpcCallException(Long id, String serviceName, String methodName, boolean enableRetry, String message) {
        super(message);
        this.id = id;
        this.serviceName = serviceName;
        this.methodName = methodName;
        this.enableRetry = enableRetry;
    }
}
